<!DOCTYPE html>
<!--[if lt IE 7 ]> <html lang="en" class="ie6 ielt8"> <![endif]-->
<!--[if IE 7 ]>    <html lang="en" class="ie7 ielt8"> <![endif]-->
<!--[if IE 8 ]>    <html lang="en" class="ie8"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!--> <html lang="en"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<title>毕业季-注册</title>
<link rel="stylesheet" type="text/css" href="css/login.css" />
<script src="js/jquery.min.js"></script>
<script src="js/ajaxSubmit.js"></script>
<script type="text/javascript">
$(document).ready(function() 
{
	$("#register").bind("submit", function()
	{
		ajaxSubmit(this, function(data)
		{
			if(data.trim().localeCompare("success") == 0)
			{
				window.location.href="/index.html";
			}
			else
			{
				alert(data);
			}
		});
		
		return false;
	});
});
</script>	
</head>
<body>
<div class="container">
	<section id="content">
		<form id="register" action="/student/studentRegister.do" method="post">
			<h1>毕业季-注册</h1>
			<div>
				<input name="name" type="text" placeholder="账号名" required id="username" />
			</div>
			<div>
				<input name="mail" type="text" placeholder="邮箱" required id="username" />
			</div>
			<div>
				<input name="password" type="password" placeholder="密码" required id="password" />
			</div>
			<div>
				<input name="passwordConform" type="password" placeholder="确认密码" required id="password" />
			</div>

			<div>
				<input type="submit" value="注册" />
			</div>
		</form><!-- form -->
	</section><!-- content -->
</div><!-- container -->
</body>
</html>